package com.zby.admin.pojo;

import com.zby.enums.GenderEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.autotable.annotation.AutoColumn;
import org.dromara.autotable.annotation.AutoTable;
import org.dromara.autotable.annotation.ColumnComment;

import java.util.List;

@Data
// 该注解用于确保在比较User对象时，会考虑其父类BasePojo的属性，保证包含从父类继承的字段（如id、createTime等）参与equals和hashCode的计算
@EqualsAndHashCode(callSuper = true)
@AutoTable
public class User extends BasePojo{

    /**
     * 用户名
     */
    @AutoColumn(length = 255, notNull = true, comment = "用户名")
    @ColumnComment("用户名")
    private String userName;
    /**
     * 昵称
     */
    @AutoColumn(length = 255, notNull = true, comment = "昵称")
    @ColumnComment("昵称")
    private String userNickname;
    /**
     * 密码
     */
    @ColumnComment("密码")
    private String userPassword;
    /**
     * 姓名
     */
    @ColumnComment("姓名")
    private String userRealname;
    /**
     * 性别
     */
    @ColumnComment("性别")
    private GenderEnum userGender;
    /**
     * 出生日期
     */
    @ColumnComment("出生日期")
    private String userBirthday;

    /**
     * 用户头像
     */
    @ColumnComment("用户头像")
    private String userProfilePictureSrc;

}
